package edu.dali.enterprise_test.model.vo;

import java.util.List;

public class SysRole {
    private long id;//主键.

    private String role;//角色标识. 如：“admin|vip” 这个是需要唯一的.

    private String description;//角色描述,超级管理员，vip用户.

    private Boolean available = false;//是否可用.

    private List<UserInfo> userInfos;

    //角色 - 权限有关系.
    //当获取SysRole的时候，立即从数据库加载permission信息.
    private List<SysPermission> permissions;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getAvailable() {
        return available;
    }

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    public List<UserInfo> getUserInfos() {
        return userInfos;
    }

    public void setUserInfos(List<UserInfo> userInfos) {
        this.userInfos = userInfos;
    }

    public List<SysPermission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<SysPermission> permissions) {
        this.permissions = permissions;
    }
}
